package mapper;

import pojo.Article;

import java.util.List;

public interface ArticleMapper {
    int deleteByPrimaryKey(Integer articleId);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Integer articleId);

    Article selectBaseArticleByPrimaryKey(Integer articleId);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKey(Article record);

    List<Article> selectByUserId(int userId);

    List<Article> selectByTop();

    List<Article> selectByBuildDateAsc();

    List<Article> selectByCommentNumber();

    List<Article> selectByOver(Integer over);

    int selectAllCount();

    List<Article> selectByCategoryId(int categoryId);

    int selectCountByCategoryId(int categoryId);

    int selectCountByOver(int solved);

    List<Article> selectByMany(Article article);

    int selectCountByMany(Article article);
}